let shufflingfigure = () => {

    let getimg = () => {
        return $.ajax({ url: './banner3/json/banner.json' })
    }
    let bindhtml = () => {
        // 把图片循环绑定到dom
        let { banner } = imgdata;
        let str = "";
        let tap = "";
        $.each(banner, (index, item) => {
            str += ` <div class="boximg">
          <img src="${item.imgpath} " alt=""></div>`;
            tap += `  <li class="${index === 0 ? 'sed' : null}"></li>`;
        })
        //    把数据和结构插入到页面
        $('.bannerbox').append(str);
        $('.tabbar').append(tap);
    }
    return {
        init: async () => {
      
        }
    }
}
shufflingfigure().init()